InstitutionalReviewView=Ext.extend(Ext.Panel,{
    constructor:function(a){
        Ext.apply(this,a);
        var all=this.initUIComponents();
        InstitutionalReviewView.superclass.constructor.call(this,{
            id:'InstitutionalReviewView',
            title:'制度评审',
            border:'false',
            region:'center',
            layout:'border',
            iconCls : "menu-position",
            items : [all.yearGridPanel,all.yearGridSearchPanel,all.yearGridTreePanel]
        })
    },
    initUIComponents:function(){
        var yearGridComponents=new createyeargridview({
            topbar : {
                inputFormName : 'InstitutionalReviewForm',
                topbarAdd:{
                    hidden:false
                },
                topbarDel:{
                    hidden:false
                }
            },
            search : {
                items : [ {
                    style : "margin:5px 5px 5px 5px;",
                    text : "制度编号"
                }, {
                    columnWidth : 0.2,
                    xtype : "textfield",
                    name : "Q_institutionalNo_S_LK",
                    maxLength : 256
                },{
                    style:"margin:5px 5px 5px 5px",
                    text:"评审时间"
                },{
                    columnWidth:0.2,
                    xtype:"datefield",
                    format:'y-m-d',
                    name:'Q_reviewTime_D_EQ',
                    maxLength:256
                } ]
            },
            grid : {
                title : "制度评审列表",
                rowActions:true,
                listUrl : __ctxPath + "/securitysystem/listInstitutionalReview.do",
                removeUrl : __ctxPath + "/securitysystem/deleteInstitutionalReview.do",
                fields : [ "id", 'years','institution','institutionalNo', "reviewProject", "reviewReason", "reviewTime","reviewDepartment","reviewResult","participatinngPerson"],
                columns : [ {
                    header : "id",
                    dataIndex : "id",
                    hidden : true
                }, {
                    header : "年份",
                    dataIndex : "years",
                    width : 50,
                    hidden:true,
                    sortable : true
                }, {
                    header:"所属机构",
                    dataIndex:'institution',
                    width:100
                },{
                    header : "制度编号",
                    dataIndex : "institutionalNo",
                    width : 100
                }, {
                    header : "评审项目",
                    dataIndex : "reviewProject",
                    width : 70
                }, {
                    header:"评审时间",
                    dataIndex:"reviewTime",
                    width:100
                }, {
                    header : "评审部门",
                    dataIndex : "reviewDepartment",
                    width : 70
                },/*{
                    header:"评审结论",
                    dataIndex:'reviewResult',
                    width:70
                },*/{
                    header:'参评人员',
                    dataIndex:'participatinngPerson',
                    width:70
                }, {
                    header : "评审原因",
                    dataIndex : "reviewReason",
                    width : 100
                }]
            },
            tree : {
                treeUrl : __ctxPath + "/securitysystem/treeLoadInstitutionalReview.do"
            }
        });
        return yearGridComponents;
    }
});